﻿package Message.Client
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ESkillCategory extends Object
    {
        public var __value:int;
        public static const _EMountSkill:int = 1;
        public static const _EPetSkill:int = 2;
        public static const _EClothesSkill:int = 3;
        public static const _EWingSkill:int = 4;
        public static const _EArtifactSkill:int = 5;
        public static const _EFightSoulSkill:int = 6;
        public static const _EFightMethodSkill:int = 7;
        public static const _EDragonSoulSkill:int = 8;
        public static const _EHolyBookSkill:int = 9;
        public static const _EWarShieldSkill:int = 10;
        public static const _EMonsterSoulSkill:int = 11;

        public function ESkillCategory(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ESkillCategory
        {
            return new ESkillCategory(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ESkillCategory
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 12)
            {
                throw new MarshalException();
            }
            return ESkillCategory.convert(_loc_2);
        }// end function

    }
}
